/**
 * jims
 */
package com.jims.master.modules.csm.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.csm.entity.ExpNameDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消耗品名称字典DAO接口
 * @author 朱齐
 * @version 2017-03-01
 */
@MyBatisDao
public interface ExpNameDictDao extends CrudDao<ExpNameDict> {

    /**
     * 根据消耗品类别和剂型获取数量
     * @return
     * @author  zhuq
     */
    public int findByCodeNo(ExpNameDict expNameDict);


    /**
     * 根据消耗品代码查询消耗品信息
     * @param expCode
     * @return
     * @author  CTQ
     */
    public ExpNameDict findByExpCode(@Param("expCode") String expCode);
    /**
     * 加载消耗品列表
     * @param expNameDict
     * @return
     * @author
     */
    public List<ExpNameDict> getExpNameList(ExpNameDict expNameDict);

    /**
     * 保存查询expInfo中包含的expNameDictlist
     * @return
     * @author  zhuq
     */
    public List<ExpNameDict> findListByInfo(ExpNameDict expNameDict);



    /**
     * 根据消耗品字典来过滤药品信息
     * @param drugNameDict
     * @return
     */
    public List<ExpNameDict> findPageByDict(ExpNameDict drugNameDict);
}